import Foundation
func uploadImage(with data: Data, ossPolicy: OssPolicy) {
    oss_Provider.request(.uploadImage(data: data, ossPolicy: ossPolicy)) { result in
        switch result {
        case let .success(response):
            if response.statusCode == 200 {
                // 处理上传成功的情况
                print("Upload success!")
            } else {
                // 处理上传失败的情况
                print("Server Error")
            }
        case let .failure(error):
            // 处理网络请求失败的情况
            print("Error: \(error.localizedDescription)")
        }
    }
}
